﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Employee_Management_System
{
    public partial class EvaluationForm : Form
    {
        LoginForm formLogin;
        AdminForm formAdmin;

        public EvaluationForm(LoginForm parent)
        {
            formLogin = parent;
            InitializeComponent();
            btnback.Click += new EventHandler(btnback_Click);
            btnsubmit.Click += new EventHandler(btnsubmit_Click);
            btnlogout.Click += new EventHandler(btnlogout_Click);
        }

        void btnlogout_Click(object sender, EventArgs e)
        {
            formLogin = new LoginForm();
            this.Hide();
            formLogin.Show();
        }

        void btnsubmit_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Evaluation Successful!");
        }

        void btnback_Click(object sender, EventArgs e)
        {
            formAdmin = new AdminForm(formLogin);
            this.Hide();
            formAdmin.Show();
        }

    }
}
